package com.sangeng.exception;

import com.sangeng.enums.AppHttpCodeEnum;

/**
 * @author 13001
 * @ClassName SystemException
 * @description: TODO
 * @date 2024年01月16日
 * @version: 1.0
 */
public class SystemException extends RuntimeException{

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public SystemException(AppHttpCodeEnum httpCodeEnum) {
        super(httpCodeEnum.getMsg());
        this.code = httpCodeEnum.getCode();
        this.msg = httpCodeEnum.getMsg();
    }

}
